<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		
		    $i=0;
		
		    function dg()
		
		       {if($i<10)
		
		          {document.write( $i++);
		
		          dg();}
		
		      }
		
		    dg();
			
		</script>
	</body>
</html>